﻿using System;
using Dino.EntityFramework;

namespace Tests.Dino.EntityFramework
{
    public class SpecificContext : ObjectContext
    {
        public SpecificContext(Func<Type, bool> isTypeRegistered, Func<Type, object> resolveType) : base("name=MyContextName", isTypeRegistered, resolveType) { }

        public SpecificContext():base("name=MyContextName"){}

        protected override void OnModelCreating(System.Data.Entity.DbModelBuilder modelBuilder) 
        {
            modelBuilder.Configurations.Add(new EntityConfiguration());
            modelBuilder.Configurations.Add(new SomeEntityConfiguration());
            base.OnModelCreating(modelBuilder);
        }
    }
}